package com.heo.protocol.packet;

import org.apache.log4j.Logger;

public class HeartResp extends BasePacket
{
  private int BODY_LENGTH = 0;// 包体长2个字节

  private static final String PACKET_NAME = "[心跳应答包]";
  private static Logger log = Logger.getLogger(HeartResp.class);

  public HeartResp(short sequenceId) throws Exception
  {
    super(PACKET_NAME);
    super.totalLength = (short) (HEAD_LENGTH + BODY_LENGTH);
    super.commandId = DeviceCommand.HEART_RESP;
    super.sequenceId = sequenceId;
  }

  @Override
  public byte[] getPacketBody()
  {
    return new byte[0];
  }
  
  @Override
  public int getTotalLength()
  {
    return super.HEAD_LENGTH + BODY_LENGTH;
  }

  public static void main(String[] args)
  {

  }

  @Override
  public void makeBody()
  {

  }

}
